<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: jetson-utils/timespec.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('timespec_8h.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">timespec.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;time.h&gt;</code><br />
<code>#include &lt;stdint.h&gt;</code><br />
<code>#include &lt;stdio.h&gt;</code><br />
</div>
<p><a href="timespec_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga741cdb5863f122d3e527c8b53e0cb3c3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga741cdb5863f122d3e527c8b53e0cb3c3">timestamp</a> (timespec *timestampOut)</td></tr>
<tr class="memdesc:ga741cdb5863f122d3e527c8b53e0cb3c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve a timestamp of the current system time.  <a href="group__time.html#ga741cdb5863f122d3e527c8b53e0cb3c3">More...</a><br /></td></tr>
<tr class="separator:ga741cdb5863f122d3e527c8b53e0cb3c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga43627a5af271e9abfd46b467d2e309a8"><td class="memItemLeft" align="right" valign="top">timespec&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga43627a5af271e9abfd46b467d2e309a8">timestamp</a> ()</td></tr>
<tr class="memdesc:ga43627a5af271e9abfd46b467d2e309a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve a timestamp of the current system time.  <a href="group__time.html#ga43627a5af271e9abfd46b467d2e309a8">More...</a><br /></td></tr>
<tr class="separator:ga43627a5af271e9abfd46b467d2e309a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf3c8f1da6d7ab35e2aba66796bff9b7d"><td class="memItemLeft" align="right" valign="top">timespec&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#gaf3c8f1da6d7ab35e2aba66796bff9b7d">timeZero</a> ()</td></tr>
<tr class="memdesc:gaf3c8f1da6d7ab35e2aba66796bff9b7d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a blank timespec that's been zero'd.  <a href="group__time.html#gaf3c8f1da6d7ab35e2aba66796bff9b7d">More...</a><br /></td></tr>
<tr class="separator:gaf3c8f1da6d7ab35e2aba66796bff9b7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaccb3fcd271afec70d82b9914834a3936"><td class="memItemLeft" align="right" valign="top">timespec&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#gaccb3fcd271afec70d82b9914834a3936">timeNew</a> (time_t seconds, long int nanoseconds)</td></tr>
<tr class="memdesc:gaccb3fcd271afec70d82b9914834a3936"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return an initialized <code>timespec</code>  <a href="group__time.html#gaccb3fcd271afec70d82b9914834a3936">More...</a><br /></td></tr>
<tr class="separator:gaccb3fcd271afec70d82b9914834a3936"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga99ec3a2bb4cf3de4f7e9a9ccc600255e"><td class="memItemLeft" align="right" valign="top">timespec&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga99ec3a2bb4cf3de4f7e9a9ccc600255e">timeNew</a> (long int nanoseconds)</td></tr>
<tr class="memdesc:ga99ec3a2bb4cf3de4f7e9a9ccc600255e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return an initialized <code>timespec</code>  <a href="group__time.html#ga99ec3a2bb4cf3de4f7e9a9ccc600255e">More...</a><br /></td></tr>
<tr class="separator:ga99ec3a2bb4cf3de4f7e9a9ccc600255e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf087d50741339d18a1c4101985b30a8a"><td class="memItemLeft" align="right" valign="top">timespec&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#gaf087d50741339d18a1c4101985b30a8a">timeAdd</a> (const timespec &amp;a, const timespec &amp;b)</td></tr>
<tr class="memdesc:gaf087d50741339d18a1c4101985b30a8a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add two times together.  <a href="group__time.html#gaf087d50741339d18a1c4101985b30a8a">More...</a><br /></td></tr>
<tr class="separator:gaf087d50741339d18a1c4101985b30a8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3c4b729b99d06b423956e7a3a17aaeb4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga3c4b729b99d06b423956e7a3a17aaeb4">timeDiff</a> (const timespec &amp;start, const timespec &amp;end, timespec *result)</td></tr>
<tr class="memdesc:ga3c4b729b99d06b423956e7a3a17aaeb4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find the difference between two timestamps.  <a href="group__time.html#ga3c4b729b99d06b423956e7a3a17aaeb4">More...</a><br /></td></tr>
<tr class="separator:ga3c4b729b99d06b423956e7a3a17aaeb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa07ea1ff9097095950d78066456cd703"><td class="memItemLeft" align="right" valign="top">timespec&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#gaa07ea1ff9097095950d78066456cd703">timeDiff</a> (const timespec &amp;start, const timespec &amp;end)</td></tr>
<tr class="memdesc:gaa07ea1ff9097095950d78066456cd703"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find the difference between two timestamps.  <a href="group__time.html#gaa07ea1ff9097095950d78066456cd703">More...</a><br /></td></tr>
<tr class="separator:gaa07ea1ff9097095950d78066456cd703"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga86c3f22b9c909bb11014c38634c29778"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga86c3f22b9c909bb11014c38634c29778">timeCmp</a> (const timespec &amp;a, const timespec &amp;b)</td></tr>
<tr class="memdesc:ga86c3f22b9c909bb11014c38634c29778"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compare two timestamps.  <a href="group__time.html#ga86c3f22b9c909bb11014c38634c29778">More...</a><br /></td></tr>
<tr class="separator:ga86c3f22b9c909bb11014c38634c29778"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga762b4a9f55b4fb1a50d459cc7c384b92"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga762b4a9f55b4fb1a50d459cc7c384b92">timeFloat</a> (const timespec &amp;a)</td></tr>
<tr class="memdesc:ga762b4a9f55b4fb1a50d459cc7c384b92"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert to 32-bit float (in milliseconds).  <a href="group__time.html#ga762b4a9f55b4fb1a50d459cc7c384b92">More...</a><br /></td></tr>
<tr class="separator:ga762b4a9f55b4fb1a50d459cc7c384b92"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafbe65af09ebc9e440699fe41a587206b"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#gafbe65af09ebc9e440699fe41a587206b">timeDouble</a> (const timespec &amp;a)</td></tr>
<tr class="memdesc:gafbe65af09ebc9e440699fe41a587206b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert to 64-bit double (in milliseconds).  <a href="group__time.html#gafbe65af09ebc9e440699fe41a587206b">More...</a><br /></td></tr>
<tr class="separator:gafbe65af09ebc9e440699fe41a587206b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab04eb4210d4a3f76a0502234c783c61e"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#gab04eb4210d4a3f76a0502234c783c61e">timeStr</a> (const timespec &amp;<a class="el" href="group__time.html#ga43627a5af271e9abfd46b467d2e309a8">timestamp</a>, char *strOut)</td></tr>
<tr class="memdesc:gab04eb4210d4a3f76a0502234c783c61e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Produce a text representation of the timestamp.  <a href="group__time.html#gab04eb4210d4a3f76a0502234c783c61e">More...</a><br /></td></tr>
<tr class="separator:gab04eb4210d4a3f76a0502234c783c61e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga10a0bd8b7e29af965bb1fa4de9153a52"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga10a0bd8b7e29af965bb1fa4de9153a52">timePrint</a> (const timespec &amp;<a class="el" href="group__time.html#ga43627a5af271e9abfd46b467d2e309a8">timestamp</a>, const char *text=NULL)</td></tr>
<tr class="memdesc:ga10a0bd8b7e29af965bb1fa4de9153a52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the time to stdout.  <a href="group__time.html#ga10a0bd8b7e29af965bb1fa4de9153a52">More...</a><br /></td></tr>
<tr class="separator:ga10a0bd8b7e29af965bb1fa4de9153a52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga54b6c83056c1f1324bcbc2dab776b273"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga54b6c83056c1f1324bcbc2dab776b273">sleepTime</a> (const timespec &amp;duration)</td></tr>
<tr class="memdesc:ga54b6c83056c1f1324bcbc2dab776b273"><td class="mdescLeft">&#160;</td><td class="mdescRight">Put the current thread to sleep for a specified time.  <a href="group__time.html#ga54b6c83056c1f1324bcbc2dab776b273">More...</a><br /></td></tr>
<tr class="separator:ga54b6c83056c1f1324bcbc2dab776b273"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga43f8222b603f11d862375e2bc1923b0d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga43f8222b603f11d862375e2bc1923b0d">sleepTime</a> (time_t seconds, long int nanoseconds)</td></tr>
<tr class="memdesc:ga43f8222b603f11d862375e2bc1923b0d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Put the current thread to sleep for a specified time.  <a href="group__time.html#ga43f8222b603f11d862375e2bc1923b0d">More...</a><br /></td></tr>
<tr class="separator:ga43f8222b603f11d862375e2bc1923b0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadc10da23418dffce632d3bd16000bc5a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#gadc10da23418dffce632d3bd16000bc5a">sleepMs</a> (uint64_t milliseconds)</td></tr>
<tr class="memdesc:gadc10da23418dffce632d3bd16000bc5a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Put the current thread to sleep for a specified number of milliseconds.  <a href="group__time.html#gadc10da23418dffce632d3bd16000bc5a">More...</a><br /></td></tr>
<tr class="separator:gadc10da23418dffce632d3bd16000bc5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5b8575ba34c76a27111d26ebac8d347a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga5b8575ba34c76a27111d26ebac8d347a">sleepUs</a> (uint64_t microseconds)</td></tr>
<tr class="memdesc:ga5b8575ba34c76a27111d26ebac8d347a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Put the current thread to sleep for a specified number of microseconds.  <a href="group__time.html#ga5b8575ba34c76a27111d26ebac8d347a">More...</a><br /></td></tr>
<tr class="separator:ga5b8575ba34c76a27111d26ebac8d347a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gade2df9f88a694448445740eca02343b9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#gade2df9f88a694448445740eca02343b9">sleepNs</a> (uint64_t nanoseconds)</td></tr>
<tr class="memdesc:gade2df9f88a694448445740eca02343b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Put the current thread to sleep for a specified number of nanoseconds.  <a href="group__time.html#gade2df9f88a694448445740eca02343b9">More...</a><br /></td></tr>
<tr class="separator:gade2df9f88a694448445740eca02343b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_54a0acf6da04fe2ed9410b4c6369bc5d.html">jetson-utils</a></li><li class="navelem"><a class="el" href="timespec_8h.html">timespec.h</a></li>
    <li class="footer">Generated on Thu Sep 26 2019 12:19:11 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
